import request from '@/utils/request'

// 查询表格列表
export function listTable(query) {
  return request({
    url: '/report/tableBase/list',
    method: 'get',
    params: query
  })
}

// 查询表格详细
export function getTable(tableId) {
  return request({
    url: '/report/tableBase/' + tableId,
    method: 'get'
  })
}

// 新增表格
export function addTable(data) {
  return request({
    url: '/report/tableBase',
    method: 'post',
    data: data
  })
}

// 修改表格
export function updateTable(data) {
  return request({
    url: '/report/tableBase',
    method: 'put',
    data: data
  })
}

// 删除表格
export function delTable(tableId) {
  return request({
    url: '/report/tableBase/' + tableId,
    method: 'delete'
  })
}
